#pragma once

namespace Dream
{
	template<class K>
	class set
	{
	public:
		struct SetOfTyre
		{
			const K& operator()(const K& key)
			{
				return key;
			}
		};
		typedef RBTree<const K, const K, SetOfTyre> rb;
		typedef typename rb::const_iterator iterator;
		typedef typename rb::const_iterator const_iterator;
		iterator begin()
		{	
			return _t.begin();
		}
		iterator end()
		{
			return _t.end();
		}

		pair<iterator, bool> insert(K key)
		{
			return _t.Insert(key);
		}
	private:
		rb _t;
	};
}